<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:composite="http://java.sun.com/jsf/composite"
	xmlns:sf="http://www.springframework.org/tags/faces">

<composite:interface>
	<composite:attribute name="toolbarTitle" />
</composite:interface>
<composite:implementation>
<div class="toolbar">
	<h:form>
	<fieldset class="fieldset1"><legend  style="font-size: 20px; font-weight: bold">#{cc.attrs.toolbarTitle}</legend>
          <p></p>
		<p:toolbar>
			<p:toolbarGroup align="left">
				<p:commandButton type="push" value="New" image="ui-icon-document" 
				    actionListener="#{toolbarBean.newButton}"  update="out1"/>
				<p:commandButton type="push" value="Open" image="ui-icon-folder-open" 
				    actionListener="#{toolbarBean.openButton}"  update="out1"/>
				<p:divider />

				<p:commandButton type="push" title="Save" image="ui-icon-disk"
				    actionListener="#{toolbarBean.saveButton}"  update="out1" />
				<p:commandButton type="push" title="Delete" image="ui-icon-trash" 
				     actionListener="#{toolbarBean.deleteButton}"  update="out1"/>
				<p:commandButton type="push" title="Print" image="ui-icon-print" 
				    actionListener="#{toolbarBean.printButton}"  update="out1"/>
			</p:toolbarGroup>

			<p:divider />

			<p:toolbarGroup align="right">
				<p:menuButton value="Navigate">
					<p:menuitem value="Home" url="/web/main" />
					<p:menuitem value="Search" url="/web/search" />
					<p:menuitem value="Toolbar"	url="/web/toolbar" />
					<p:menuitem value="DropdownMenu" url="/web/dropdownMenu" />
				</p:menuButton>
			</p:toolbarGroup>
		</p:toolbar>
		<br></br>		
		
           <h:outputText id="out1" value="#{toolbarBean.text}" />  
        
		</fieldset>
	</h:form>
	</div>

</composite:implementation>
</html>